import {Component} from '@angular/core';
import {NavController, NavParams} from 'ionic-angular';

import request from 'superagent';
import {Files} from './tab-resources-files';
import {Backend} from '../../providers/backend';

@Component({
  templateUrl: 'build/pages/tab-resources/tab-resources-download.html'
})
export class Downloadd {

  static get parameters() {
    return [[NavController], [NavParams], [Backend]];
  }

  constructor(navCtrl, navParams, backend) {
    
    this.thid = navParams.get('thid');
    this.group = navParams.get('group');
    this.navCtrl = navCtrl;
    this.navParams = navParams;
    this.backend = backend;
    this.inTheaters = {};
    this.menus = [];
    console.log(this.thid,this.group);
     this.backend.meetinggroup(this.thid,this.group)
      .then(result => {
          console.log(result);
        this.resourcesWhitePaper = result;
      });
 
  }
  toFile(id,classid) {
    
      this.navCtrl.push(Files, { id: id});
    
  }

}
